:root {
    color-scheme: dark;
    font-size: 12px;
}

.cursor-col-resize {
    cursor: col-resize;
}

body {
    /* border-radius: 40px; */
    -webkit-user-select: text !important;
    -khtml-user-select: text;
    -ms-user-select: text;
    user-select: text !important;
    cursor: default;
}

.rounded-lg {
    border-radius: 4px !important;
}

.title-bar {
    flex-shrink: 0;
    /* 防止标题栏被压缩 */
    -webkit-app-region: drag;
}

.h-screen {
    height: calc(100vh - 30px) !important;
    /* 减去标题栏高度 */
    -webkit-app-region: no-drag;
}
.rounded-l-lg {
    border-radius: 12px !important
}

input,
textarea {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
    width: 100%;
    outline: none;
    border: 1px solid #374151;
}

input:focus,
textarea:focus {
    border-color: #60a5fa;
}

select {
    background-color: #1f2937;
    border-color: #374151;
    color: #e5e7eb;
    padding: 4px 10px;
    border-radius: 4px;
    outline: none;
    border: 1px solid #374151;
}

.terminal-input {
    font-family: 'Courier New', monospace; /* 与pre相同的字体 */
    font-size: 14px; /* 与pre相同的字号 */
    line-height: 1.5; /* 与pre相同的行高 */
    height: auto; /* 自动高度 */
    padding: 2px 4px; /* 适当的内边距 */
    margin: 0;
    border: none;
    outline: none;
    background-color: transparent;
    color: inherit;
}

.terminal-output {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1f2937;
}

::-webkit-scrollbar-thumb {
    background: #4b5563;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #6b7280;
}

.button {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    font-size: 12px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background-color: #3B82F6;
    color: white;
}

.btn-success {
    background-color: #10B981;
    color: white;
}

.btn-default {
    background-color: #374151;
    color: white;
}

.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.mb-2 {
    padding-top: 5px;
    padding-left: 5px
}

.p-4 {
    padding: 0.5rem !important;
}

.title-bar {
    background: #132855;
    /* #1f2937; */
    /* 改为深色背景与整体风格一致 */
    height: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 10px;
    -webkit-app-region: drag;
}

.window-controls {
    display: flex;
    gap: 8px;
    -webkit-app-region: no-drag;
}

.window-btn {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    cursor: pointer;
    transition: opacity 0.2s;
}

.window-btn:hover {
    opacity: 0.8;
}

.close-btn {
    background: #ef4444;
    /* 红色关闭按钮 */
}

.minimize-btn {
    background: #f59e0b;
    /* 黄色最小化按钮 */
}

.maximize-btn {
    background: #10b981;
    /* 绿色最大化按钮 */
}

#terminalDrawer {
  top: 56px; /* 标题栏高度 */
  height: calc(100% - 56px);
}

/* 添加过渡效果 */
#terminalDrawer {
  transition: transform 0.3s ease-in-out;
}

/* 思考动画样式 */
.thinking-dots {
    display: flex;
    align-items: center;
    height: 16px;
    gap: 3px;
}

.thinking-dots .dot {
    width: 4px;
    height: 4px;
    background-color: #9ca3af;
    border-radius: 50%;
    animation: bounce 1.5s infinite ease-in-out;
}

.thinking-dots .dot:nth-child(1) {
    animation-delay: 0s;
}
.thinking-dots .dot:nth-child(2) {
    animation-delay: 0.2s;
}
.thinking-dots .dot:nth-child(3) {
    animation-delay: 0.4s;
}
.thinking-dots .dot:nth-child(4) {
    animation-delay: 0.6s;
}
.thinking-dots .dot:nth-child(5) {
    animation-delay: 0.8s;
}
.thinking-dots .dot:nth-child(6) {
    animation-delay: 1s;
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}
.system-time {
    font-size: 10px;
    color: #9CA3AF;
    margin-bottom: 4px;
}
.system-content {
    display: flex;
    flex-direction: column;
    color: #4CAF50;
    background-color: rgba(76, 175, 80, 0.1);
    padding: 2px 3px;
    border-radius: 4px;
    margin: 1px 0;
    border-left: 3px solid #4CAF50;
    display: flex;
    flex-direction: column;
}
.system-detail {
    font-size: 11px;
    color: #D1D5DB;
    margin-top: 4px;
    color: #F44336;
    background-color: rgba(244, 67, 54, 0.1);
    padding: 8px 12px;
    border-radius: 4px;
    margin: 4px 0;
    border-left: 3px solid #F44336;
    display: flex;
    flex-direction: column;
}

html, body {
    /* border-radius: 12px; */
    overflow: hidden;
}

#app {
    /* border-radius: 12px; */
    overflow: hidden;
}

